using System;
using System.Text.RegularExpressions;

namespace System72.NTextile.RegexLibrary
{
    public class ListRegex:BaseRegex
    {
        public ListRegex(string regExOperator)
        {
            //Attribute Pattern will be different for List operators as we need to operate across ALL list items.
            m_attributePattern = "(({.+})|((.+))|([.+]))?";
            string pattern = String.Format(@"^{0}({0})?{1}\s(\w.*)(\n)?", regExOperator, m_attributePattern);
            m_regex = new Regex(pattern, RegexOptions.Multiline);
        }
    }
}
